package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.StrategyDetail;
import cn.wolfcode.luowowo.article.domain.StrategyTag;
import cn.wolfcode.luowowo.common.query.QueryObject;import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StrategyTagMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StrategyTag record);

    StrategyTag selectByPrimaryKey(Long id);

    List<StrategyTag> selectAll();

    int updateByPrimaryKey(StrategyTag record);

    List<StrategyTag> selectForList(QueryObject qo);

    void insertRelation(@Param("tagId")Long tagId, @Param("detailId")Long detailId);

    String selectByDetailId(Long detailId);

    void deleteRelation(Long detailId);

    StrategyTag selectByTagName(String tagName);

}